using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace SPDV
{
    [Serializable]
    public class SPWebData
    {
        [Category("General")]
        private string _title;
        public string Title
        {
            get { return _title; }
            set { _title = value; }
        }
        private string _name;
        [Category("General")]
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
        private string _description;
        [Category("General")]
        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }
        private string _webTemplate;
        public string WebTemplate
        {
            get { return _webTemplate; }
            set { _webTemplate = value; }
        }
        private bool _isRootWeb;
        public bool IsRootWeb
        {
            get { return _isRootWeb; }
            set { _isRootWeb = value; }
        }
        private bool _hasUniqueRoleAssignments;
        public bool HasUniqueRoleAssignments
        {
            get { return _hasUniqueRoleAssignments; }
            set { _hasUniqueRoleAssignments = value; }
        }
        private bool _hasUniqueRoleDefinitions;
        public bool HasUniqueRoleDefinitions
        {
            get { return _hasUniqueRoleDefinitions; }
            set { _hasUniqueRoleDefinitions = value; }
        }
        private string _url;
        [Description("Absolute URL")]
        public string Url
        {
            get { return _url; }
            set { _url = value; }
        }
        private string _serverRelativeUrl;
        [Description("Relative URL")]
        public string ServerRelativeUrl
        {
            get { return _serverRelativeUrl; }
            set { _serverRelativeUrl = value; }
        }
        private Guid _ID;
        [Category("General")]
        public Guid ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        public List<SPWebData> Webs = new List<SPWebData>();
    }
}
